package com.kin207.netty.handle.impl;


import com.kin207.netty.context.RequestContext;
import com.kin207.netty.handle.IMessageHandle;
import com.kin207.netty.msg.vo.HexSetNameReqVo;
public class HexMessageHandle implements IMessageHandle<HexSetNameReqVo> {
	private static String onoff ="00000000";
	public String name() {
		return "68";
	}
	public Class paramClass() {
		return HexSetNameReqVo.class;
	}
	public void handle(HexSetNameReqVo param) {
		RequestContext req = RequestContext.curr.get();//替换成缓存获取
		String name = param.getName();
		if(name != null && !name.contentEquals(onoff)) {
			req.getSessionManager().addName(name, req.getChannelHandlerContext());
		}
	}


}
